import {defineStore} from 'pinia';
import {ref} from 'vue'
import {getMemberList} from "@/api/modules/member";

export const useMemberStore = defineStore('member', () => {
    const members = ref<SimpleUserItem[]>([]);
    const getMembers = async ()=>{
        const res = await getMemberList();
        if(res.code === 200){
            members.value = res.data;
        }
    }
    return {members,getMembers}
}, {persist: true})